//
//  BJRootViewController.m
//  BaoJunNewEnergy
//
//  Created by 9s on 2018/3/15.
//  Copyright © 2018年 SIXECO. All rights reserved.
//

#import "BJRootViewController.h"
#import "BJFindViewController.h"
#import "BJCarServiceViewController.h"
#import "BJFunViewController.h"
#import "BJMineViewController.h"
#import "BJMallViewController.h"
@interface BJRootViewController ()

@end

@implementation BJRootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
- (void)setControllers{
    
    UINavigationController*find=[[UINavigationController alloc] initWithRootViewController:[[BJFindViewController alloc] init]];
    
    UINavigationController*mall=[[UINavigationController alloc] initWithRootViewController:[[BJMallViewController alloc] init]];
    
    UINavigationController*carService=[[UINavigationController alloc] initWithRootViewController:[[BJCarServiceViewController alloc] init]];
    
    UINavigationController*fun=[[UINavigationController alloc] initWithRootViewController:[[BJFunViewController alloc] init]];
    
    UINavigationController*mine=[[UINavigationController alloc] initWithRootViewController:[[BJMineViewController alloc] init]];
    
    self.viewControllers=@[find,mall,carService,fun,mine];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
